package com.jnu.hc.jnuhcusercms.mapper;

import com.jnu.hc.jnuhcusercms.domain.Orders;
import com.jnu.hc.jnuhcusercms.dto.CalendarResponseDto;
import com.jnu.hc.jnuhcusercms.dto.OrderListRequestDto;
import com.jnu.hc.jnuhcusercms.dto.OrderListResponseDto;
import com.jnu.hc.jnuhcusercms.dto.OrdersMapperDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<CalendarResponseDto> hospitalAppointmentNumberList(List<OrdersMapperDto> ordersMapperDtos);

    int countOrder(@Param("hpId") Integer hpId, @Param("smId") Integer smId);


    List<OrderListResponseDto> ordersList(OrderListRequestDto orderListRequestDto);


}